package com.haiyou.dc.mybatis.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.*;
import java.io.Serializable;


/**
 * 
 *
 * @author Administrator
 * @date 2020-01-30 12:07:06
 */
@ApiModel(value = "mybatis用户测试，用于存储过程")
@Data
@Accessors(chain = true)
@Table(name = "mybatis_user")
public class MybatisUser implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @ApiModelProperty(value = "id", name = "id")
    private Integer id;

    /**
     * name
     */
    @Column(name = "name")
    @ApiModelProperty(value = "name", name = "name")
    private String name;

    /**
     * sex
     */
    @Column(name = "sex")
    @ApiModelProperty(value = "sex", name = "sex")
    private String sex;

    /**
     * introduction
     */
    @Column(name = "age")
    @ApiModelProperty(value = "age", name = "age")
    private Integer age;

}
